import { CapacityDiaryController } from '@/controller/miniProgram/CapacityDiaryController';

export const DrugReminder = [
  {
    method: 'post',
    route: '/user/capacity_diary/info',
    controller: CapacityDiaryController,
    action: 'setOutPutRecord',
  },
  {
    method: 'get',
    route: '/user/capacity_diary',
    controller: CapacityDiaryController,
    action: 'getCapacityDiaryForUserToken',
  },
  {
    method: 'get',
    route: '/user/capacity_diary/:id',
    controller: CapacityDiaryController,
    action: 'getCapacityDiaryForUser',
  },
  /**
   * 添加喝水记录
   */
  {
    method: 'post',
    route: '/user/capacity_diary',
    controller: CapacityDiaryController,
    action: 'addCapacityRecordForUser',
  },
  /**
   * 设置喝水总量
   */
  {
    method: 'put',
    route: '/user/capacity_diary',
    controller: CapacityDiaryController,
    action: 'addCapacityTotalForUser',
  },
  /**
   * 清空喝水记录
   */
  {
    method: 'delete',
    route: '/user/capacity_diary',
    controller: CapacityDiaryController,
    action: 'clearCapacityRecordForUserToken',
  },
  {
    method: 'delete',
    route: '/user/capacity_diary/:id',
    controller: CapacityDiaryController,
    action: 'clearCapacityRecordForUser',
  },
];
